<!--
 * @Author: ccr ccr888888
 * @Date: 2023-03-31 13:37:22
 * @LastEditors: ccr ccr888888
 * @LastEditTime: 2023-03-31 13:37:51
 * @FilePath: \xys-xcx\pages\payment\error.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
	<view class="wrap z-flex-col z-row-center">
		<view class="z-flex-col z-row-center">
			<view class="top z-flex-col z-col-center">
				<uv-image class="u-m-b-60" width="396rpx" height="396rpx"
					src="/static/images/payment/error.png">
				</uv-image>
				<view style="margin-top: 44rpx;">
					<text>支付失败</text>
				</view>
			</view>
			<view class="bottom z-flex-col z-col-center z-row-center ">
				<view class="moni_button">
					<MyButton type='warning' size="large" text="重新支付" @click="toList"></MyButton>
				</view>
				<view class="moni_button " style="margin-top: 20rpx;">
					<MyButton type='warning' size="large2" text="返回" @click="toIndex"></MyButton>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				successToGo: {}
			}
		},
		onShow() {},
		methods: {
			// 跳订单列表页
			toList() {
				uni.redirectTo({
					url: '/pages/order/list',
				});
			},
			// 跳首页
			toIndex() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.wrap {
		padding-top: 204rpx;
		// height: 800rpx;

		.top {
			font-family: PingFangSC-Medium;
			font-size: 32rpx;
			color: #1E2221;
			font-weight: 500;
			letter-spacing: 1.34rpx;
		}

		.bottom {
			margin-top: 248rpx;

		}
	}
</style>